package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
@ToString
public class ReceiptManagement {

    //审核状态
    public static final int NO_AUDIT = 0;   //未审核
    public static final int AUDIT = 1;      //已审核

    private Long id;

    private OfficialStudent stuName;      //学员姓名

    private Clazz clazz;           //班级
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date receiptTime;       //收款时间

    private BigDecimal receiptAmount;    //收款金额

    private BigDecimal unpaidAmount;    //未付金额

    private DictionaryItem dictionaryItem;  //receipt_type_id   收款类型

    private Employee receiptEmployee;    // receipt_person_id  收款人

    private String documentNo;    //单据号

    private Employee marketingEmployee;     //营销人员   marketing_person_id

    private String remark;       //  备注信息

    private Integer reviewStatus;   // 审核状态


}